<?php

require_once("connect.php");



Class LOGGER {

  private $SQL;

  function __construct() 	{
		$this->SQL = SQL::getConnection();
	}

  function log($text) {
      $this->SQL->query("INSERT INTO `pmg_log` (`AdresseIP`,`log`) VALUES ('".$_SERVER["REMOTE_ADDR"]."','".$text."');");
  }

}



?>